/*
 * Copyright (c) 2020. bmy
 */

import { Component, Prop, Vue } from 'vue-property-decorator';

@Component
export default class HelloWorld extends Vue {

  @Prop({ default: 'default value' }) public readonly msg!: string;

  private mounted () {
  }

  private showAlert () {
    alert("showAlert")
  }

  private render () {
    return (
      <div class="hello">
        <h1>{ this.msg }</h1>
        <h2 onClick={ () => this.showAlert() }>HelloWorld组件点击事件：{ this.msg }</h2>
      </div>
    )
  }
}
